﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Star.Tools.Excel.Attributes
{
    /// <summary>
    ///  用于控制excel筛选器行为的自定义属性。 
    /// </summary>
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
    public class FilterAttribute : Attribute
    {
     
        public FilterAttribute()
        {
            LastRow = null;
        }

        /// <summary>
        /// 起始行
        /// </summary>
        public int FirstRow { get; set; }

        /// <summary>
        ///结束行
        /// </summary>

        public int? LastRow { get; set; }

        /// <summary>
        /// 起始列
        /// </summary>
        public int FirstColumn { get; set; }

        /// <summary>
        /// 结束列
        /// </summary>
        public int LastColumn { get; set; }
    }
}
